package com.project.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 获取config.properties文件的属性
 * 
 * @author weimingsen
 *
 */
@Component
public class ConfigBean {

	/**
	 * MD5盐值
	 */
	@Value("${md5.salt}")
	private String md5Salt;

	/**
	 * 系统用户
	 */
	@Value("${default.system.code}")
	private String systemCode;

	/**
	 * 默认密码
	 */
	@Value("${default.system.password}")
	private String systemPwd;


	/**
	 * 上传到服务器路径
	 */
//	@Value("${upload.address}")
//	private String uploadAddress;

	/**
	 * 系统根目录
	 */
//	@Value("${root.address}")
//	private String rootAddress;

	/**
	 * 系统管理员ID
	 */
	@Value("${system.role.id}")
	private String sysotemRoleId;



	public String getMd5Salt() {
		return md5Salt;
	}

	public String getSystemCode() {
		return systemCode;
	}

	public String getSystemPwd() {
		return systemPwd;
	}

//	public String getUploadAddress() {
//		return uploadAddress;
//	}
//
//	public void setUploadAddress(String uploadAddress) {
//		this.uploadAddress = uploadAddress;
//	}

//	public String getRootAddress() {
//		return rootAddress;
//	}

	public String getSysotemRoleId() {
		return sysotemRoleId;
	}

}
